package com.xg.java.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

import javax.servlet.http.HttpServletRequest;

import static com.xg.java.resp.ReponseBean.fail;

@ApiIgnore
@RestController
public class JwtExceptionController{

    @RequestMapping("/expiredJwtException")
    public Object expiredJwtException(HttpServletRequest request){
        return fail(request.getAttribute("msg").toString());
    }
}

